Share via


SegmentElement Class [IIS 7 and higher]

Specifies a URL segment whose content will not be served to the client.

Syntax

class SegmentElement : CollectionElement

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the SegmentElement class.

Name

Description

Segment

A required unique read/write string value that specifies a URL segment whose content will not be served to the client. Wildcard or regular expressions are not supported. The key property.

NoteNote:
A segment is the part of a URL between two slashes or the part of the URL following the last slash. For example, the URL /segment1/segment2/segment3.asp has three segments: segment1, segment2, and segment3.asp.
NoteNote:
The following segments are blocked by default: bin, App_code, App_GlobalResources, App_LocalResources, App_WebReferences, App_Data, and App_Browsers.

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are contained in the HiddenSegments property of the HiddenSegmentSettings class.

Inheritance Hierarchy

CollectionElement

   SegmentElement

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

CollectionElement Class [IIS 7 and higher]

HiddenSegmentSettings Class [IIS 7 and higher]

RequestFilteringSection Class [IIS 7 and higher]